Skip to main content

Enumerated Values

tank_odom_et

Indicates the current chassis odometry configuration.

typedef enum {
NO_ODOM =0,

ADI_ONE_ODOM,
ADI_TWO_ODOM,
ADI_TWO_ROTATED_ODOM,

ROTATION_ONE_ODOM,
ROTATION_TWO_ODOM,
ROTATION_TWO_ROTATED_ODOM

} tank_odom_e_t;
Parameters
NO_ODOMNo odometry.
ADI_ONE_ODOMOdometry with one tracking wheel using ADI encoder.
ADI_TWO_ODOMOdometry with two tracking wheels using ADI encoders.
ADI_TWO_ROTATED_ODOMOdometry with two rotated tracking wheels using ADI encoders.
ROTATION_ONE_ODOMOdometry with one tracking wheel using v5 Rotation sensor.
ROTATION_TWO_ODOMOdometry with two tracking wheels using v5 Rotation sensor.
ROTATION_TWO_ROTATED_ODOMOdometry with two rotated tracking wheels using v5 Rotation sensor.

swing_direction_e_t

Indicates the swing turn type.

typedef enum{
LEFT_SWING=0,
RIGHT_SWING
} swing_direction_e_t;
Parameters
LEFT_SWINGBlock the chassis´s left side when turning.
RIGHT_SWINGBlock the chassis´s right side when turning.

tank_op_arcade_e_t

Indicates the arcade configuration during driver period.

typedef enum {
E_TANK_OP_ARCADE_LEFT = 0, // Left stick configuration
E_TANK_OP_ARCADE_RIGHT, // Right stick configuration
E_TANK_OP_ARCADE_DOUBLE, // Double stick configuration
E_TANK_OP_ARCADE_DOUBLE_ALTERNATIVE //Double stick configuration alternative
} tank_op_arcade_e_t;
Parameters
E_TANK_OP_ARCADE_LEFTLeft stick configuration.
E_TANK_OP_ARCADE_RIGHTRight stick configuration.
E_TANK_OP_ARCADE_DOUBLEDouble stick configuration.
E_TANK_OP_ARCADE_DOUBLE_ALTERNATIVEDouble stick configuration alternative.